﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GenerarOT.aspx.cs" Inherits="abmOrdenesTrabajo_GenerarOT" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link rel="stylesheet" type="text/css" href="../estilos/estilos.css" />
    <title>Generar orden de trabajo</title>
    <style type="text/css">
        .style2
        {
            height: 30px;
        }
        .input130px
        {}
        .style9
        {            height: 26px;
        }
        .style17
        {
            width: 324px;
            height: 26px;
        }
        .style18
        {
            width: 290px;
            height: 26px;
        }
        .style21
        {
            width: 324px;
            height: 30px;
        }
        .style27
        {
            width: 845px;
            height: 23px;
        }
        .style28
        {
            width: 324px;
            height: 23px;
        }
        .style29
        {
            width: 290px;
            height: 23px;
        }
        .style33
        {
            width: 324px;
            height: 25px;
        }
        .style34
        {
            width: 290px;
            height: 25px;
        }
        .style36
        {
            height: 25px;
        }
        .style37
        {
            height: 21px;
            text-align: left;
        }
        .style38
        {
            width: 309px;
            height: 21px;
        }
        .style39
        {
            width: 18px;
            height: 26px;
        }
        .style40
        {
            width: 18px;
            height: 23px;
        }
        .style41
        {
            width: 18px;
            height: 25px;
        }
        .style42
        {
            width: 309px;
            height: 23px;
        }
        .style43
        {
            width: 3px;
            height: 26px;
        }
        .style44
        {
            width: 3px;
            height: 23px;
        }
    </style>

    <link rel="stylesheet" href="../estilos/themes/base/jquery.ui.all.css" type="text/css"/>
    <script src="../js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../js/jquery-ui-1.8.21.custom.min.js" type="text/javascript"></script>
    <script src="../js/jquery.ui.datepicker-es.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../estilos/demos.css" />
    <script type="text/javascript" >
        $(document).ready(function () {

          $.datepicker.setDefaults($.datepicker.regional["es"]);

            $("[id$=TextBoxFechaInicio]").datepicker({
            });

        });
        </script>
</head>
<body id="main_body" style="margin-left: 0px; margin-top: 5px; margin-right: 0px;
    margin-bottom: 0px; background-color: white;">
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="760">
        <tbody>
            <tr>
                <td>
                    <div id="div_header" style="height: 70px;" class="title">
                        <table border="0" cellpadding="0" cellspacing="0" class="imagen_header">
                            <tbody>
                                <tr class="row_top">
                                    <td>
                                        <div style="width: 200">
                                        </div>
                                    </td>
                                    <td>
                                    </td>
                                     <td style="text-align: right" >
                                        <div class="loginName">
                                        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>&nbsp;&nbsp;
                                        <a href="../Salir.aspx"><img alt="" src="../images/salir.gif" border="0"  />&nbsp;Salir</a>&nbsp;&nbsp;
                                          |
                                        <a href="../CambiarClave.aspx">&nbsp;Cambiar Clave</a>
                                        
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div id="div_body" style="border-style: none; border-color: inherit; border-width: 0px; position: relative; left: 0px; top: -25px; align: center;
                        width: 760px; height: 428px; overflow-y: auto; overflow-x: hidden;
                        z-index: 20">
                        <form id="form2" runat="server">
                        <table id="centrar" align="center" cellpadding="0" cellspacing="0" style="text-align: left;
                            text-indent: 2px; width: 100%; height: 180px;" class="text">
                            <tr>
                                <td>
                                    
                                            <table style="width: 100%; height: 365px; margin-right: 0px;" 
                                                    align="center">
                                                     <tr>
                                            <td colspan="6" style="height: 10px; text-align: left;" >
                        Administrar ordenes de trabajo &gt;&gt; Generar orden de trabajo</td>
                                        </tr>
                                                     <tr>
                                            <td colspan="6" style="height: 10px; text-align: center;" class="table_header_text_center">
                                                Comienzo de obra</td>
                                        </tr>
                                        <tr>
                                            <td class="style17">
                                                Nro. Presupuesto</td>
                                            <td class="style18">
                                                <asp:TextBox ID="TextBoxNroPresup" runat="server" Width="103px" 
                                                    ValidationGroup="groupBuscarPresupuesto" CssClass="input100px" 
                                                    ></asp:TextBox>
                                                &nbsp;<asp:Button ID="botonBuscarPresupuesto" runat="server" Height="20px" Text="Buscar" 
                                                    Width="67px" CssClass="small_button" onclick="botonBuscar_Click" ValidationGroup="groupBuscarPresupuesto"/>
                                            </td>
                                            <td class="style39">
                                                <asp:RequiredFieldValidator ID="RequiredBuscar" runat="server" ControlToValidate="TextBoxNroPresup" ValidationGroup="groupBuscarPresupuesto"
                                                   ErrorMessage="Debe especificar un numero de presupuesto.">*</asp:RequiredFieldValidator>
                                                   
                                                                                               <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxNroPresup"
                                                   ValidationGroup="groupBuscarPresupuesto" ErrorMessage="Formato de número inválido" ValidationExpression="^(-)?\d+(\.\d\d)?$">*</asp:RegularExpressionValidator>
                                                   
                                                   
                                                   </td>
                                            <td class="style43">
                                                Estado</td>
                                            <td class="style9" colspan="2">
                                                <asp:TextBox ID="TextBoxEstadoPresup" runat="server" Width="121px" 
                                                    Enabled="false" CssClass="input100px"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td class="style21">
                                                Cliente</td>
                                            <td class="style2" colspan="4">
                                                <asp:DropDownList ID="tiposDoc" runat="server" Height="16px" Width="48px" CssClass="input100px">
                                                </asp:DropDownList>
                                                <asp:TextBox ID="TextBoxDni" runat="server" Width="63px" 
                                                    ValidationGroup="groupBuscarCliente" CssClass="input100px"></asp:TextBox>
                                                &nbsp;<asp:Button ID="botonBuscarCliente" runat="server" Height="20px" Text="Buscar" 
                                                    Width="67px" CssClass="small_button" onclick="botonBuscarCliente_Click" 
                                                    ValidationGroup="groupBuscarCliente"/>
                                            &nbsp;
                                                <asp:RequiredFieldValidator ID="buscarCliente" runat="server" ControlToValidate="TextBoxDni"
                                                   ValidationGroup="groupBuscarCliente" 
                                                    ErrorMessage="Debe especificar un numero de cliente.">*</asp:RequiredFieldValidator>
                                 
                                                       <asp:RegularExpressionValidator ID="regularNroDoc" runat="server" ControlToValidate="TextBoxDni"
                                                   ValidationGroup="groupBuscarCliente" ErrorMessage="Formato de número inválido" ValidationExpression="^(-)?\d+(\.\d\d)?$">*</asp:RegularExpressionValidator>

                                            </td>
                                            <td class="style2">
                                                </td>
                                        </tr>
                                        <tr>
                                            <td class="style28">
                                                Nombre</td>
                                            <td class="style29">
                                                <asp:TextBox ID="TextBoxNombre" runat="server" Width="170px" 
                                                     Enabled="false" CssClass="input100px"></asp:TextBox>
                                            </td>
                                            <td class="style40">
                                                </td>
                                            <td class="style44">
                                                Apellido</td>
                                            <td class="style42">
                                                <asp:TextBox ID="TextBoxApellido" runat="server" Width="170px" 
                                                    Enabled="false" CssClass="input100px"></asp:TextBox>
                                            </td>
                                            <td class="style27">
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="style28">
                                                <asp:Label ID="LabelDireccion" runat="server" Text="Direccion"></asp:Label>
                                            </td>
                                            <td class="style29">
                                                <asp:TextBox ID="TextBoxDireccion" runat="server" Width="170px" 
                                                  CssClass="input100px" Enabled="false"></asp:TextBox>
                                            </td>
                                            <td class="style40">
                                                </td>
                                            <td class="style44">
                                                Telefono</td>
                                            <td class="style42">
                                                <asp:TextBox ID="TextBoxTelefono" runat="server" Width="170px" 
                                                     Enabled="false" CssClass="input100px"></asp:TextBox>
                                            </td>
                                            <td class="style27">
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="style33">
                                                Fecha Inicio</td>
                                            <td class="style34">
                                                <asp:TextBox ID="TextBoxFechaInicio" runat="server" Width="170px" 
                                                    ValidationGroup="groupAceptar" CssClass="input100px"></asp:TextBox>
                                            </td>
                                            <td class="style41"> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxFechaInicio"
                                                   ValidationGroup="groupAceptar" 
                                                    ErrorMessage="Debe especificar una fecha de inicio.">*</asp:RequiredFieldValidator>
                                                </td>
                                            <td class="style36" colspan="3">
                                                </td>
                                        </tr>
                                        <tr>
                                            <td colspan="6" style="height: 10px">
                                            <hr />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4" class="style37">
                                                <asp:Button ID="botonCancelar" runat="server" Text="Cancelar" CssClass="small_button" OnClick="botonCancelar_Click" />
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                </td>
                                            <td class="style38">
                                                </td>
                                            <td class="style37">
                                                <asp:Button ID="botonAceptar" runat="server" Text="Aceptar"  CssClass="small_button" OnClick="botonAceptar_Click" ValidationGroup="groupAceptar" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td  colspan="6">
                                  
                                               
                                                
                                                 <asp:ValidationSummary ID="ValidationSummary" ValidationGroup="groupBuscarPresupuesto" runat="server" HeaderText="Atención:"
                                                    Height="1px" />   
                                                    
                                                 <asp:ValidationSummary ID="ValidationSummary2" ValidationGroup="groupBuscarCliente" runat="server" HeaderText="Atención:"
                                                      Height="1px" />  
                                                    
                                                <asp:ValidationSummary ID="ValidationSummary1" ValidationGroup="groupAceptar" runat="server" HeaderText="Atención:"
                                                      Height="1px" />  
                                                    

                                            </td>
                                        </tr>
                                    </table>
                                   
                                </td>
                            </tr>
                        </table>
                        </form>
                    </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <table cellpadding="0" cellspacing="0" width="760px" style="background-color: white;
                        text-align: center;">
                        <tbody>
                            <tr>
                                <td>
                                    <img src="../images/footer2.gif" height="26" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
</body>
</html>



